package com.aspose.cells;

class zbno extends zbz {
   zbno() {
      this.c(2175);
   }

   void a(zql var1, CellArea var2) {
      int var3 = 42;
      byte[] var4 = null;
      if (var1.d() == 0) {
         String var5 = var1.g();
         if (var5 != null && !"".equals(var5)) {
            var4 = Encoding.getUnicode().a(var5);
            var3 += var4.length + 1;
         }
      }

      this.a((short)var3);
      this.c = new byte[var3];
      this.c[0] = 127;
      this.c[1] = 8;
      if (var1.b() == 1) {
         this.c[12] = (byte)(this.c[12] | 1);
      }

      switch(var1.d()) {
      case 0:
         if (var4 != null) {
            System.arraycopy(com.aspose.cells.b.a.zc.a(var4.length / 2), 0, this.c, 38, 4);
            this.c[42] = 1;
            System.arraycopy(var4, 0, this.c, 43, var4.length);
         }
         break;
      case 3:
         this.c[12] = (byte)(this.c[12] | 6);
         System.arraycopy(com.aspose.cells.b.a.zc.a(zsk.f(var1.h())), 0, this.c, 30, 4);
         System.arraycopy(com.aspose.cells.b.a.zc.a(var1.i()), 0, this.c, 34, 4);
      }

      System.arraycopy(com.aspose.cells.b.a.zc.a(var2.StartRow), 0, this.c, 14, 4);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var2.EndRow), 0, this.c, 18, 4);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var2.StartColumn), 0, this.c, 22, 4);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var2.EndColumn), 0, this.c, 26, 4);
   }
}
